package com.wootion.cims.module.communityresidence.residencelist.excel;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: LanQiang
 * @Date: 2022/12/16/9:46
 * @Description: excel表格导出
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@ApiModel(value = "excel导出条件")
@ExcelIgnoreUnannotated
@HeadFontStyle(fontHeightInPoints = 12)
@HeadRowHeight(value = 25)
public class ResidenceExcel implements Serializable {
    private static final long serialVersionUID = 874681926276361091L;
    
    @ApiModelProperty(value = "住宅id数组")
    private List<String> ids;

    @ApiModelProperty(value = "姓名/手机号/身份证号")
    private String keyWord;
    
    @ApiModelProperty(value = "住宅类别")
    private String residenceClasses;

    @ApiModelProperty(value = "房屋类型")
    private String residenceCategory;

    @ApiModelProperty(value = "社区id")
    private String communityId;

   
    @ApiModelProperty(value = "小区id")
    private String plotId;

   
    @ApiModelProperty(value = "详细地址")
    private List<String> detailedAddress;
    
    @ApiModelProperty(value = "门牌号")
    private String houseNumber;


    @ExcelProperty(value = "房屋类型",index = 0)
    @ContentFontStyle
    @ColumnWidth(value = 12)
    private String categoryType;

    @ExcelProperty(value = "所属社区",index = 1)
    @ColumnWidth(value = 12)
    private String communityName;

    @ExcelProperty(value = "所属小区",index = 2)
    @ColumnWidth(value = 12)
    private String plotName;

    @ExcelProperty(value = "详细地址",index = 3)
    @ColumnWidth(value = 12)
    private String address;

    @ExcelProperty(value = "门牌号",index = 4)
    @ColumnWidth(value = 11)
    private String houseNumbers;

    @ExcelProperty(value = "住宅类别",index = 5)
    @ColumnWidth(value = 12)
    private String classes;

    @ExcelProperty(value = "业主姓名",index = 6)
    @ColumnWidth(value = 10)
    private String personName;

    @ExcelProperty(value = "身份证号",index = 7)
    @ColumnWidth(value = 21)
    private String personIdNum;

    @ExcelProperty(value = "手机号",index = 8)
    @ColumnWidth(value = 13)
    private String personPhone;

    @ExcelProperty(value = "其他备注",index = 9)
    @ColumnWidth(value = 10)
    private String remark;
}
